#include <iostream>
#include <string>

#include "DBManager.hpp"
#include "XMLParser.hpp"

using namespace std;

int main(int argc, char **argv)
{
  DBManager manager;
  manager.db = "allen";
  manager.host = "clarke";
  manager.user = "joapuipe";
  manager.pass = "n3d2u76qwj59hb";

  if ( !manager.db_connect() ) {
    cout << "Error al connectar!" << endl;
    return 1;
  }
  
  manager.clear_tables();


  XMLParser xmlparser;
  xmlparser.parse_movies(manager);
  xmlparser.parse_people(manager);

 
  manager.db_disconnect();

  return 0;
}
